#ifndef PPTPSERVERROUTE_H
#define PPTPSERVERROUTE_H

#include <QObject>
#include "PptpRequestHandler.h"

class PptpServerRoute : public QObject
{
    Q_OBJECT
public:
    explicit PptpServerRoute(QObject *parent = nullptr);
    QByteArray dispatchRequest(const QByteArray &readMessage);

private:
    QMap<QString, std::function<QByteArray(const PptpMessage &)>> routeMap;
    std::shared_ptr<PptpRequestHandler> handler;
    void setupRoutes();
};

#endif // PPTPSERVERROUTE_H
